package com.cloud.jdkTest;

/**
 *证明在执行finally先执行了return
 */
public class FinallyTest {

    public static void main(String[] args) {
        System.out.println(test());
    }

    public static int test() {
        int res = 0;
        try {
            res = 1;
            return res;
        } finally {
            res = 2;
            System.out.println("finally block " + res);

            //rebase

            //rebase test

        }
    }
}
